package cn.wolfcode.car.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Setter;
import lombok.Getter;
import org.springframework.format.annotation.DateTimeFormat;

@Setter
@Getter
public class Employee {
    public static final Integer STATE_ON  = 0;// 未冻结
    public static final Integer STATE_OFF  = 1;// 已冻结

    private Long id;

    private String name;

    private String email;

    private Integer age;

    private Integer admin;

    private Integer status = STATE_ON;

    private Long deptId;

    private Department dept;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date hiredate;

}

